package com.time.company.viewmodel;


import com.time.company.app.MyApplication;
import com.time.company.db.model.UserModel;

/**
 * Created by Bing on 2017/8/25.
 * E-mail is tx16bing@163.com
 */

public class UserViewModel {

    private String userId;
    private String account;
    private String showName;
    private String headImg;
    private String telephone;

    private String vipLev;
    private String timeLev;
    private String unReadMsgNum;
    private String userActNum;
    private String timeCoin;

    public UserViewModel() {
    }

    public UserViewModel(MyApplication application, UserModel model) {
        this.userId = model.getUserId();
        this.account = model.getAccountName();
        this.showName = model.getName();
        this.headImg = model.getLogoUrl();
        this.telephone = model.getTelephone();

        this.vipLev = model.getVipLev();
        this.timeLev = model.getTimeLev();
        this.unReadMsgNum = model.getUnReadMsgNum();
        this.userActNum = model.getUserActNum();
        this.timeCoin = model.getTimeCoin();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getShowName() {
        return showName;
    }

    public void setShowName(String showName) {
        this.showName = showName;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getVipLev() {
        return vipLev;
    }

    public void setVipLev(String vipLev) {
        this.vipLev = vipLev;
    }

    public String getTimeLev() {
        return timeLev;
    }

    public void setTimeLev(String timeLev) {
        this.timeLev = timeLev;
    }

    public String getUnReadMsgNum() {
        return unReadMsgNum;
    }

    public void setUnReadMsgNum(String unReadMsgNum) {
        this.unReadMsgNum = unReadMsgNum;
    }

    public String getUserActNum() {
        return userActNum;
    }

    public void setUserActNum(String userActNum) {
        this.userActNum = userActNum;
    }

    public String getTimeCoin() {
        return timeCoin;
    }

    public void setTimeCoin(String timeCoin) {
        this.timeCoin = timeCoin;
    }
}
